home *** CD-ROM | disk | FTP | other *** search
- Path: swidir.switch.ch!epflnews!vez
- From: vez@de.epfl.ch (Philippe Vez)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: How adjust window borders?
- Date: 5 Mar 1996 14:06:51 GMT
- Organization: Ecole Polytechnique Federale de Lausanne
- Distribution: world
- Message-ID: <4hhhpr$qc9@info.epfl.ch>
- References: <19960217.7D84090.A425@mojaveg.ridgecrest.ca.us> <ehb.02st@draco.prima.ruhr.de> <4gm1af$i15@the-fly.zip.com.au>
- NNTP-Posting-Host: desun1-f1.epfl.ch
- X-Newsreader: TIN [version 1.2 PL2]
-
- Stuart Mackinnon (stuartm@zip.com.au) wrote:
- : In article <19960217.7D84090.A425@mojaveg.ridgecrest.ca.us> mojaveg@ridgecrest.ca.us (Everett M. Greene) writes:
- : >I wish to be able to directly control the size of the window borders
- : >for a window which has no border gadgets or text. The window opens
- : >as desired but I would prefer to have all four borders a bit wider.
- : >The implications in the RKM are that WA_InnerWidth and WA_InnerHeight
- : >should have some effect on border widths, but trying these seems to
- : >have no visible effect whatsoever. Any ideas?
-
- : What I am about to tell you is not very system friendly!!! Be warned!!
-
- : Before you open your window do something like a Forbid() (I don't think
- : intuition uses interrupts in such a way to affect this, but if you
- : really want you could do Disable()).
-
- : Then modify the WBorTop, WBorLeft, WBorRight, WBorBottom field in the
- : Screens structure. Remember the previous values before you start poking
- : them.
-
- : Now, open your window. Restore the previous values in the Screen's
- : structure and call Permit() (or Enable()).
-
- : Once the window is open, you can't modify the border sizes.
-
- : This lets you adjust your window's borders, but I would recommend NOT
- : doing it.
-
- : Regards,
-
- : Stuart MacKinnon.
- : --
-
- As you said, it's not very system friendly. There is another way that is
- discussed in the RKM I think.
-
- Before Opening your window add Gadgets ( WA_Gadgets ) in the borders that don't
- have an imagery, don't forget to set the proper flags (something like
- GFLG_RIGHTBORDER, etc..) . Simply adjust the Height and Width of the gadgets
- to the width you'd like the windows borders have.
- Intuition will automatically adjust the window borders to keep your invisible
- border gadgets inside the border (argh.. not so good english...)
-
- Hope you understood.
-
- --
- Sigs lost...
-
-